package com.xiaobaibai.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaobaibai.bo.OrderListSelect;
import com.xiaobaibai.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
public interface OrderDao extends BaseMapper<Order> {

    public List<Order> getListBySelect(@Param("orderListSelect") OrderListSelect orderListSelect);

    //只有取消订单的用了,所以这里放心
    public int updateOrderStatus(@Param("orderId")String orderId,@Param("status")Integer status);

    public Map<String,Object> getDashboard();

}
